package com.mercury.auth;


import com.mercury.security.annotation.EnableAuthResourceServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author mercury
 */
@EnableDiscoveryClient
@RefreshScope
@SpringBootApplication
@ComponentScan({"com.mercury.base", "com.mercury.auth", "com.mercury.system.api"})
@EnableFeignClients(basePackages = "com.mercury.*.*.client")
@EnableAuthResourceServer
public class AuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthApplication.class);
    }
}
